# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=transmission-remote-gtk
pkgver=1.6.0
pkgrel=0
pkgdesc="GTK client for remote management of the Transmission BitTorrent client"
url="https://github.com/transmission-remote-gtk/transmission-remote-gtk"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	appstream-glib-dev
	geoip-dev
	gtk+3.0-dev
	json-glib-dev
	libayatana-appindicator-dev
	libsoup3-dev
	meson
	perl
	"
options="!check" # no tests
source="https://github.com/transmission-remote-gtk/transmission-remote-gtk/releases/download/$pkgver/transmission-remote-gtk-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
351079d91cc5b33c7955103cbc28d1010bf3d18668689ff5b690ff2214d9e44cdd9f841ebe207260d31c332650d6ae05a0d9ceb7696861c8be5beeae4d0a08d5  transmission-remote-gtk-1.6.0.tar.xz
"
